import React, { useEffect, useState } from "react";
import { FastApi } from "../../api";
import FastList from "./components/FastList/FastList";

export default function Fast() {
  const [list, setList] = useState<IExamItem[]>([]);
  useEffect(() => {
    FastApi().then((res) => {
      setList(res.data.records);
    });
  }, []);

  return (
    <div>
      {list.map((item) => (
        <FastList data={item} key={item.id} />
      ))}
    </div>
  );
}
